package com.mercenary.wein.screenControl.ui.batch;

import com.mercenary.wein.screenControl.bean.DeviceBean;
import com.mercenary.wein.screenControl.ui.inter.GroupCheckBoxOb;

import javax.swing.*;
import java.util.List;

/**
 * Created by tuxiao on 2017/3/19.
 */
public class SelectedNumLabel extends JLabel implements GroupCheckBoxOb{
    private String content = "已选择手机数:";

    public SelectedNumLabel(){
        super();
        this.setText(content+"0");
        this.repaint();
    }

    public void refreshData(List<DeviceBean> dbs) {
        this.setText(content+dbs.size());
        this.repaint();
    }
}
